<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>系统登陆</title>
	<script src="static/assets/js/jquery-1.8.1.min.js"></script>
	<link rel="stylesheet" type="text/css"  href="static/plugs/bootstrap/css/bootstrap.css"/>
	<link rel="stylesheet" type="text/css"  href="static/plugs/bootstrap/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css"  href="static/plugs/bootstrap/css/bootstrap-theme.css"/>
	<link rel="stylesheet" type="text/css"  href="static/plugs/bootstrap/css/bootstrap-theme.min.css"/>
	<script type="text/javascript" src="static/plugs/jquery/js/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="static/plugs/bootstrap/js/bootstrap.js"></script>
	<script type="text/javascript" src="static/plugs/bootstrap/js/bootstrap.min.js"></script>

	<script type="text/javascript">
		function refreshCaptcha(){
			document.getElementById("img_captcha").src="/kaptcha?t="+ Math.random();
		}
	</script>
</head>
<body>
	<div class="container">
		<div
			style="margin-top: 200px;text-align: center;width:300px;MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">
			<form action="loginValid" method="post" commandName="login"
				modelAttribute="login">
				<table>
					<tr>
						<td colspan="2"><h2 class="form-signin-heading">请登录</h2></td>
					</tr>
					<tr>
						<td colspan="2"><input name="account" path="account" type="text"
								class="form-control" placeholder="用户名" required="" autofocus="" />
						</td>
					</tr>
					<tr>
						<td colspan="2"><input name="pwd" path="pwd" type="password"
								class="form-control" placeholder="密码" required="" autocomplete="off" /></td>
					</tr>
					<tr>
						<td style="width:60%;"><input name="kaptcha"  autocomplete="off"
							class="form-control" type="text" width="4" />
						</td>
						<td><img style="height:32px;" id="img_captcha" alt="验证码"
							src="kaptcha"
							onclick="javascript:refreshCaptcha()"/>
						</td>
					</tr>
					<tr>
						<td><div class="checkbox">
								<label> <input name="remembered" type="checkbox"
									value="true"/>记 住 </label>
							</div></td>
						<td><div><span th:text="${message}"></span></div></td>
					</tr>
					<tr>
						<td colspan="2"><button
								class="btn btn-lg btn-primary btn-block" type="submit">登
								陆</button></td>
					</tr>
				</table>

			</form>
		</div>
	</div>
</body>
</html>